package org.brownflat.watergate.domain;

/**
 * <p>&copy Rupert Jones 2012</p>
 *
 * @author rup
 */
public class RepositoryBuilder extends AbstractBuilder<Repository> {
    public RepositoryBuilder() {
        super(new Repository());
    }

    public RepositoryBuilder withName(String name) {
        getEntity().setName(name);
        return this;
    }

    public RepositoryBuilder withPassword(String password) {
        getEntity().setPassword(password);
        return this;
    }

    public RepositoryBuilder withUsername(String username) {
        getEntity().setUsername(username);
        return this;
    }

    public RepositoryBuilder withUrl(String url) {
        getEntity().setUrl(url);
        return this;
    }

    public RepositoryBuilder withBranch(Branch branch) {
        getEntity().addBranch(branch);
        return this;
    }
}
